﻿var url_path = "." //本地测试用
var my_ClientType = "web"; //当前客户端类型"web","android","iphone"

function getUrlParam(name) {
    var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
    var r = window.location.search.substr(1).match(reg);  //匹配目标参数
    if (r != null) return unescape(r[2]); return null; //返回参数值
}
function today() {
    //    var today = "";
    //    var myDate = new Date();
    //    today = myDate.getFullYear();    //获取完整的年份(4位,1970-????)
    //    today += '-' + (myDate.getMonth() + 1);      //获取当前月份(0-11,0代表1月)
    //    today += '-' + myDate.getDate();
    //    return today;
    var date = new Date();
    var seperator1 = "-";
    var seperator2 = ":";
    var year = date.getFullYear();
    var month = date.getMonth() + 1;
    var strDate = date.getDate();
    if (month >= 1 && month <= 9) {
        month = "0" + month;
    }
    if (strDate >= 0 && strDate <= 9) {
        strDate = "0" + strDate;
    }
    var currentdate = year + seperator1 + month + seperator1 + strDate
    return currentdate;
}